package com.itheima.Demo;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Demo线程池 {
    public static void main(String[] args) {
        AAA a = new AAA();
        //Executors;
        ExecutorService executor = Executors.newFixedThreadPool(1);
        executor.submit(a);
        executor.submit(a);
        executor.submit(a);


    }
}
